<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <link rel="stylesheet" href="/static/login.css">
</head>
<body>
    <section>
            <div class="main">
                <div class="form">
                    <h1>登录</h1>
                    <form action="/dologin/" method="post">
                        <div class="input">
                            <input type="text" placeholder="学号\手机号" name="account" required>
                        </div>
                        <div class="input">
                            <input type="password" placeholder="请输入登录密码" name="pwd" required>

                        </div>
                        <div class="input">
                            <input type="submit" value="登录">

                        </div>
                        <p class="register"><a href="http://127.0.0.1:8000/register">
                                注册
                            </a></p>
                        <p class="register"><a href="http://127.0.0.1:8000/forget">
                                忘记密码
                            </a></p>
                        <p class="register"><a href="http://127.0.0.1:8000/saleregister">
                                免费开店
                            </a></p>
                    </form>
                    {% if messages %}
                        <script>
                            {% for msg in messages %}
                                alert('{{ msg.message }}');
                            {% endfor %}
                        </script>
                    {% endif %}
                </div>
            </div>
        </div>
    </section>
</body>
</html>